package com.wtpaint.zeuslib.activity;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.view.AsyncLayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.wtpaint.zeuslib.R;

public class AsyncLayoutInflaterActivity extends Activity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        new AsyncLayoutInflater(this).inflate(R.layout.activity_async_layout_inflater,
                null, new AsyncLayoutInflater.OnInflateFinishedListener() {
                    @Override
                    public void onInflateFinished(@NonNull View view, int resid, @Nullable ViewGroup parent) {
                        setContentView(view);
                    }
                });

        super.onCreate(savedInstanceState);
    }
}
